package club.cearnach.api.util;

import java.util.Random;

/**
 * @author 阮胜
 * @date 2018/5/15 09:14
 */
public class GlobalUtil {


    /**
     * 生成随机时间戳+6位随机数
     *
     * @return
     */
    public static String randomId() {
        long l = System.currentTimeMillis();
        int r = new Random().nextInt(100000) + 100000;
        return String.valueOf(l + r);
    }

}
